package com.chang.annotation.resource.controller;

import com.chang.annotation.resource.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {

    @Resource(name = "myUserService")
    private UserService userService;

    public void add() {
        userService.add();
        System.out.println("Controller:add>>>>>>>>>>>");
    }

}
